﻿using System;

namespace FunctionBasics
{
    class Program
    {
        static void Main(string[] args)
        {
            Start();
        }

        static void Start() 
        {
            Program.PrintLine();

            string s = Console.ReadLine();
            int max = Max(5, 7);

            double y = f(5, 6.3, 0);

            int[] array = new int[] { 1, 45, -8, 2, 99 };

            int maximun = array[0];

            for (int i = 1; i < array.Length; i++)
            {
                maximun = Max(maximun, array[i]);
                //maximun = Math.Max(maximun, array[i]);
            }


            Console.ReadKey(); 
        }


        static double f(double x, double k, double c)
        {
            return k * x + c;
        }

        static int Max(int a, int b)
        {
            int max = a;
            if (b > max)
            {
                max = b;
            }

            return max;
        }

        static void PrintLine()
        {
            Console.WriteLine("-------------------");
        }
    }
}
